# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py3-configargparse
_pkgname=ConfigArgParse
pkgver=1.5.3
pkgrel=1
pkgdesc="drop-in replacement for argparse"
url="https://github.com/bw2/ConfigArgParse"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools py3-wheel"
checkdepends="py3-mock py3-pytest py3-yaml"
source="$pkgname-$pkgver.tar.gz::https://github.com/bw2/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-configargparse" # Backwards compatibility
provides="py-configargparse=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
bdc0340bd92cfd5319743a4860af80fc2352f38b156031856c2b39b8c8ad59461281009030c4451dd464334a829b8143c765979cfc9b8ccbe9fbdcb0e08ac7b4  py3-configargparse-1.5.3.tar.gz
"
